﻿@model Leo.Entities.Proveedor

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Proveedor</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.CodigoProveedor)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CodigoProveedor)
            @Html.ValidationMessageFor(model => model.CodigoProveedor)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RUC)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RUC)
            @Html.ValidationMessageFor(model => model.RUC)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RazonSocial)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RazonSocial)
            @Html.ValidationMessageFor(model => model.RazonSocial)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Direccion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Direccion)
            @Html.ValidationMessageFor(model => model.Direccion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Telefono)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Telefono)
            @Html.ValidationMessageFor(model => model.Telefono)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DescProductos)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DescProductos)
            @Html.ValidationMessageFor(model => model.DescProductos)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
